x86/hvm: give HVMOP_set_param and HVMOP_get_param their own functions
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 7 May 2015 13:06:25 +0000 (15:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 May 2015 13:06:25 +0000 (15:06 +0200)
commit43a5c7bd4e38b876bd3a4f05af03bc0c5f54233e
treea79caa4ae36ed8875c782fb0a5512007c04af833
parent5fa1ce85bc661f2f945b8a5327b6cec7cf69cfba
x86/hvm: give HVMOP_set_param and HVMOP_get_param their own functions

The level of switch nesting in those ops is getting unreadable. Giving
them their own functions does introduce some code duplication in the
the pre-op checks but the overall result is easier to follow.

This patch is code movement (including style fixes). There is no
functional change.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c